<?php
/** 
 * @file test017.php
 * @desc 
 *   测定数字转换成中文
 *   修改为K币/K宝后缀
 *  
 */
header("Content-Type:text/html;charset=UTF-8");
?>
<script type="text/javascript" src="js/number/number.js"></script>

<script lange="javascript" type="text/javascript">
function nst_convert(t){
	t.value = Number(t.value.replace(/\D/g,''));
	if(t.value > 0){
		bbb.innerHTML = '您输入了 <span style="color:red;">'+numberConvert(t.value) + '</span> K币';
	}else{
		bbb.innerHTML = '';
	}
}

</script>

请输入K币金额：<input type="text" name="aaa" id="aaa" onkeyup="nst_convert(this)"> K币<br>

<p id="bbb"></p>

